package com.yitongmao.bean;

import org.litepal.crud.DataSupport;

import java.util.List;

/*
* 作者：梁伟航 on 2017/7/13 18:46
* 类的用途：
*/
public class HomeListBean extends DataSupport{

    /**
     * result : {"state":"1","code":"ok","url":null,"obj":null,"isRollBack":null,"message":""}
     * tropicList : [{"id":13,"code":null,"name":"苹果","parentid":null,"icoImg":null},{"id":17,"code":null,"name":"南方苹果","parentid":null,"icoImg":null}]
     * goodsList : [{"isAdvanceState":"01","thumb":"https://img.alicdn.com/imgextra/i3/2908798478/TB2p.Q4pHXlpuFjy1zbXXb_qpXa_!!2908798478.jpg_60x60q90.jpg","subtitle":"广西百色田东芒果","retailUnit":"t","id":27,"state":"01","goodsName":"广西百色田东芒果","retailPrice":1200,"describes":"广西百色田东芒果"},{"isAdvanceState":"00","thumb":"https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg","subtitle":"新鲜.有机.无公害","retailUnit":"kg","id":26,"state":"01","goodsName":"【越南】红心火龙果","retailPrice":137,"describes":"火龙果"}]
     * seasonalList : [{"isAdvanceState":"00","thumb":"https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg","goodsId":26,"retailUnit":"kg","type":"01","title":"【越南】红心火龙果","jumpUrl":"/wap/goods/detail?goodsId=26","picture":"http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455929922781_master.jpg,http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455931202868_master.jpg,http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455933521781_master.jpg","picUrl":"https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg","id":32,"position":"seasonal","goodsName":"【越南】红心火龙果","retailPrice":137}]
     * indexBannerList : [{"picUrl":"https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg","objId":26,"id":30,"position":"app_index_banner","type":"01","jumpUrl":"/wap/goods/detail?goodsId=26"},{"picUrl":"https://img.alicdn.com/imgextra/i3/2908798478/TB2p.Q4pHXlpuFjy1zbXXb_qpXa_!!2908798478.jpg_60x60q90.jpg","objId":27,"id":31,"position":"app_index_banner","type":"01","jumpUrl":"/wap/goods/detail?goodsId=27"}]
     */

    public ResultBean result;
    public List<TropicListBean> tropicList;
    public List<GoodsListBean> goodsList;
    public List<SeasonalListBean> seasonalList;
    public List<IndexBannerListBean> indexBannerList;

    public static class ResultBean {
        /**
         * state : 1
         * code : ok
         * url : null
         * obj : null
         * isRollBack : null
         * message :
         */

        public String state;
        public String code;
        public Object url;
        public Object obj;
        public Object isRollBack;
        public String message;
    }

    public static class TropicListBean {
        /**
         * id : 13
         * code : null
         * name : 苹果
         * parentid : null
         * icoImg : null
         */

        public int id;
        public Object code;
        public String name;
        public Object parentid;
        public Object icoImg;
    }

    public static class GoodsListBean {
        /**
         * isAdvanceState : 01
         * thumb : https://img.alicdn.com/imgextra/i3/2908798478/TB2p.Q4pHXlpuFjy1zbXXb_qpXa_!!2908798478.jpg_60x60q90.jpg
         * subtitle : 广西百色田东芒果
         * retailUnit : t
         * id : 27
         * state : 01
         * goodsName : 广西百色田东芒果
         * retailPrice : 1200.0
         * describes : 广西百色田东芒果
         */

        public String isAdvanceState;
        public String thumb;
        public String subtitle;
        public String retailUnit;
        public int id;
        public String state;
        public String goodsName;
        public double retailPrice;
        public String describes;
    }

    public static class SeasonalListBean {
        /**
         * isAdvanceState : 00
         * thumb : https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg
         * goodsId : 26
         * retailUnit : kg
         * type : 01
         * title : 【越南】红心火龙果
         * jumpUrl : /wap/goods/detail?goodsId=26
         * picture : http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455929922781_master.jpg,http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455931202868_master.jpg,http://demo-file.cdtupsmfw.com/images/2017/08/11/1502455933521781_master.jpg
         * picUrl : https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg
         * id : 32
         * position : seasonal
         * goodsName : 【越南】红心火龙果
         * retailPrice : 137.0
         */

        public String isAdvanceState;
        public String thumb;
        public int goodsId;
        public String retailUnit;
        public String type;
        public String title;
        public String jumpUrl;
        public String picture;
        public String picUrl;
        public int id;
        public String position;
        public String goodsName;
        public double retailPrice;
    }

    public static class IndexBannerListBean {
        /**
         * picUrl : https://img14.360buyimg.com/n7/jfs/t3046/265/544746786/200600/37296076/57baa5beNc13e05df.jpg
         * objId : 26
         * id : 30
         * position : app_index_banner
         * type : 01
         * jumpUrl : /wap/goods/detail?goodsId=26
         */

        public String picUrl;
        public int objId;
        public int id;
        public String position;
        public String type;
        public String jumpUrl;
    }
}
